package com.artpri.model;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import static javax.persistence.GenerationType.IDENTITY;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * GoodsConsult entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "goods_consult", catalog = "jpw")
public class GoodsConsult implements java.io.Serializable {

	// Fields

	private Integer gcId;
	private Integer goodsNum;
	private String gcName;
	private String gcTime;
	private String gcContent;
	private Integer gcRNum;
	private Integer gcAnonymity;
	private Integer gcState;

	// Constructors

	/** default constructor */
	public GoodsConsult() {
	}

	/** full constructor */
	public GoodsConsult(Integer goodsNum, String gcName, String gcTime,
			String gcContent, Integer gcRNum, Integer gcAnonymity,
			Integer gcState) {
		this.goodsNum = goodsNum;
		this.gcName = gcName;
		this.gcTime = gcTime;
		this.gcContent = gcContent;
		this.gcRNum = gcRNum;
		this.gcAnonymity = gcAnonymity;
		this.gcState = gcState;
	}

	// Property accessors
	@Id
	@GeneratedValue(strategy = IDENTITY)
	@Column(name = "gc_id", unique = true, nullable = false)
	public Integer getGcId() {
		return this.gcId;
	}

	public void setGcId(Integer gcId) {
		this.gcId = gcId;
	}

	@Column(name = "goods_num", nullable = false)
	public Integer getGoodsNum() {
		return this.goodsNum;
	}

	public void setGoodsNum(Integer goodsNum) {
		this.goodsNum = goodsNum;
	}

	@Column(name = "gc_name", nullable = false, length = 10)
	public String getGcName() {
		return this.gcName;
	}

	public void setGcName(String gcName) {
		this.gcName = gcName;
	}

	@Column(name = "gc_time", nullable = false, length = 20)
	public String getGcTime() {
		return this.gcTime;
	}

	public void setGcTime(String gcTime) {
		this.gcTime = gcTime;
	}

	@Column(name = "gc_content", nullable = false, length = 220)
	public String getGcContent() {
		return this.gcContent;
	}

	public void setGcContent(String gcContent) {
		this.gcContent = gcContent;
	}

	@Column(name = "gc_r_num", nullable = false)
	public Integer getGcRNum() {
		return this.gcRNum;
	}

	public void setGcRNum(Integer gcRNum) {
		this.gcRNum = gcRNum;
	}

	@Column(name = "gc_ anonymity", nullable = false)
	public Integer getGcAnonymity() {
		return this.gcAnonymity;
	}

	public void setGcAnonymity(Integer gcAnonymity) {
		this.gcAnonymity = gcAnonymity;
	}

	@Column(name = "gc_state", nullable = false)
	public Integer getGcState() {
		return this.gcState;
	}

	public void setGcState(Integer gcState) {
		this.gcState = gcState;
	}

}